<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head " ></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43"></font>
                </h4>
                <div class="row">
                    <div class="col-md-12">

                        <div class="card">
                            <div class="card-header">
                                <div class="card-title">招聘管理 >> 简历管理</div>
                            </div>
                            <div class="card-body">
                                <div class="card-sub">
                                    <form class="form-inline" th:action="@{/sys/resume/list}" id="formIndex" onsubmit="return false">
                                        <input type="hidden" id="showDiv" value="resumeInfoList">
                                        <input  type="hidden" name="attr" th:value="${attr}">
                                        <input  th:if="${attr=='interview'}" type="hidden" name="interview" th:value="interview">
                                        <input  th:if="${attr=='employ'}" type="hidden" name="employ" th:value="employ">
                                        <input type="hidden" id="formPageNo" name="pageNo" value="1" />

                                        <div class="form-group" >
                                            <label for="name">姓名: &nbsp;&nbsp; </label>
                                            <input   class="form-control" name="rName" value="" />
                                        </div>
                                        <div class="form-group" >
                                            <label for="name">应聘职位: &nbsp;&nbsp; </label>
                                            <input   class="form-control" name="pName" value="" />
                                        </div>
                                        <div class="form-group" >
                                            <label for="name">工作经验: &nbsp;&nbsp; </label>
                                            <input   class="form-control" name="experience" value="" />
                                        </div>
                                        <div class="form-group" >

                                            <label for="name" th:if="${attr!='employ'}">简历状态: &nbsp;&nbsp; </label>
                                            <select  name="statu" class="form-control" th:if="${attr=='manage' || attr==null}"   >
                                                <option value="0">请选择</option>
                                                <option  th:each="statu:${resumeStatus}" th:value="${statu.valueId}" th:text="${statu.valueName}" ></option>
                                            </select>
                                            <select  name="statu" class="form-control" th:if="${attr=='interview' }"   >
                                                <option value="0">请选择</option>
                                                <option th:if="${statu.valueId > 1 and statu.valueId <= 5}" th:each="statu,userStatu:${resumeStatus}" th:value="${statu.valueId}" th:text="${statu.valueName}" ></option>
                                            </select>
                                        </div>
                                        <div class="form-group" >
                                            <label for="name"> 登记日期: &nbsp;&nbsp; </label>
                                            <input   class="form-control" name="createdDate" value="" />
                                        </div>

                                        <div class="form-group" >
                                            <input class="btn btn-default" type="button" id="sel" onclick="queryList(document.getElementById('formIndex'),1)" value="查询" />
                                        </div>
                                        <div class="form-group" >
                                            <a th:if="${attr==null || attr=='manage' }" th:href="@{/sys/resume/regShow}" class="btn btn-default" >简历登记</a>
                                        </div>
                                    </form>
                                    <div id="resumeInfoList" class="pageListShow"></div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>

            </div>


            <!-- Modal -->
            <div  th:if="${attr==null || attr =='manage'|| attr ==''}" id="postin" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>应聘职位列表</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <input id="oId" type="hidden" th:value="${oId}"/>
                            <form class="form-inline"  th:action="@{/sys/post/showList(show='incl')}" method="post" id="formIndex2" onsubmit="return false">
                                <input type="hidden" id="showDiv" value="showList">
                                <input type="hidden" value="1" name="pageIndex" id="formPageNo"/>
                                &nbsp;&nbsp;职位名称:&nbsp;&nbsp;
                                <input class="form-control " style="width: 130px"  type="text" name="name" th:value="${name}"/>
                                &nbsp;&nbsp;所属部门:&nbsp;&nbsp;
                                <select class="form-control"  name="oId">
                                </select>
                                <input type="hidden" name="isStart" value="1">
                                &nbsp;&nbsp; &nbsp;&nbsp;<input type="button" id="sel"
                                                                value="查询" class="btn btn-default"
                                                                onclick="queryList(document.getElementById('formIndex2'),1)">
                                &nbsp;&nbsp;
                                &nbsp;&nbsp;<input type="button" id="ok"  value="确定" class="btn btn-default">
                                &nbsp;&nbsp;
                            </form>
                            <div id="showList" class="pageListShow"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div th:if="${attr==null || attr =='manage'|| attr ==''}" class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>填写推荐面试意见</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <form class="form-inline" th:action="@{/sys/resume/updAjax}" >
                                <div class="form-group">
                                    <input  type="hidden"  class="rid" name="id" >
                                    <input  type="hidden"  name="isInterview" value="1" >
                                    <input  type="hidden"  name="status" value="2" >
                                    <input  type="hidden" name="referrer" th:value="${#session.getAttribute('userSession').id}">
                                    推荐人: &nbsp;&nbsp;&nbsp; <input style="width: 130px" readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}" required="required"  />&nbsp;&nbsp;&nbsp;
                                    推荐时间: &nbsp;&nbsp;&nbsp;<input  style="width: 130px"  readonly="readonly"  class="form-control" name="referrerDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
                                </div>
                                <div class="form-group">
                                    推荐面试意见: &nbsp;&nbsp;&nbsp;<textarea  class="form-control" rows="5" cols="30"  name="referrerOpinion"></textarea>
                                </div>
                                <div class="form-group" style="margin: 0 auto;"  >
                                    <button type="button"  th:onclick="'javascript:minfrom('+this+');'"  class="btn btn-default">确定</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">返回</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>




            <div th:if="${attr =='interview'}" class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>一面面试结果登记</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <form class="form-inline" th:action="@{/sys/resume/updAjax}" >
                                <div class="form-group">
                                    <input  type="hidden"  class="rid" name="id" >
                                    <input  type="hidden"  name="status" value="3" >
                                    <input  type="hidden" name="oneSide" th:value="${#session.getAttribute('userSession').id}">
                                    一面面试人: &nbsp;&nbsp;&nbsp; <input style="width: 130px" readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}" required="required"  />&nbsp;&nbsp;&nbsp;
                                    面试时间: &nbsp;&nbsp;&nbsp;<input  style="width: 130px"  readonly="readonly"  class="form-control" name="oneSideDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
                                </div>
                                <div class="form-group">
                                    一面面试意见: &nbsp;&nbsp;&nbsp;<textarea  class="form-control" rows="5" cols="30"  name="oneSideOpinion"></textarea>
                                </div>
                                <div class="form-group" style="margin: 0 auto;"  >
                                    <button type="button"  th:onclick="'javascript:minfrom('+this+');'"  class="btn btn-default">确定</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">返回</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>


            <div th:if="${attr =='interview'}" class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>二面面试结果登记</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <form class="form-inline" th:action="@{/sys/resume/updAjax}" >
                                <div class="form-group">
                                    <input  type="hidden"  class="rid" name="id" >
                                    <input  type="hidden"  name="status" value="4" >
                                    <input  type="hidden" name="biplanar" th:value="${#session.getAttribute('userSession').id}">
                                    二面面试人: &nbsp;&nbsp;&nbsp; <input style="width: 130px" readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}" required="required"  />&nbsp;&nbsp;&nbsp;
                                    面试时间: &nbsp;&nbsp;&nbsp;<input  style="width: 130px"  readonly="readonly"  class="form-control" name="biplanarDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
                                </div>
                                <div class="form-group">
                                    二面面试意见: &nbsp;&nbsp;&nbsp;<textarea  class="form-control" rows="5" cols="30"  name="biplanarOpinion"></textarea>
                                </div>
                                <div class="form-group" style="margin: 0 auto;"  >
                                    <button type="button"  th:onclick="'javascript:minfrom('+this+');'"  class="btn btn-default">确定</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">返回</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

            <div th:if="${attr =='interview'}" class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>三面面试结果登记</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <form class="form-inline" th:action="@{/sys/resume/updAjax}" >
                                <div class="form-group">
                                    <input  type="hidden" class="rid" name="id" >
                                    <input  type="hidden"  name="status" value="5" >
                                    <input  type="hidden" name="threeSide" th:value="${#session.getAttribute('userSession').id}">
                                    三面面试人: &nbsp;&nbsp;&nbsp; <input style="width: 130px" readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}" required="required"  />&nbsp;&nbsp;&nbsp;
                                    面试时间: &nbsp;&nbsp;&nbsp;<input  style="width: 130px"  readonly="readonly"  class="form-control" name="threeSideDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
                                </div>
                                <div class="form-group">
                                    三面面试意见: &nbsp;&nbsp;&nbsp;<textarea  class="form-control" rows="5" cols="30"  name="threeSideOpinion"></textarea>
                                </div>
                                <div class="form-group" style="margin: 0 auto;"  >
                                    <button type="button"  th:onclick="'javascript:minfrom('+this+');'"  class="btn btn-default">确定</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">返回</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>


            <div th:if="${attr =='employ'}" class="modal fade" id="myModal6" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <span>录用/存档登记</span>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        </div>
                        <div class="modal-body">
                            <form class="form-inline" th:action="@{/sys/resume/updAjax}" >
                                <div class="form-group">
                                    <input  type="hidden" class="rid" name="id" >
                                    <input  type="hidden"  name="status" value="6" >
                                    <input  type="hidden" name="hirePeople" th:value="${#session.getAttribute('userSession').id}">
                                    登记人: &nbsp;&nbsp;&nbsp; <input style="width: 130px" readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}" required="required"  />&nbsp;&nbsp;&nbsp;
                                    决议时间: &nbsp;&nbsp;&nbsp;<input  style="width: 130px"  readonly="readonly"  class="form-control" name="hireDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
                                </div>
                                <div class="form-group">
                                    录用决议: &nbsp;&nbsp;&nbsp;<textarea  class="form-control" rows="5" cols="30"  name="hireOpinion"></textarea>
                                </div>
                                <div class="form-group" style="margin: 0 auto;"  >
                                    <button type="button"  th:onclick="'javascript:minfrom('+this+');'"  class="btn btn-default">确定</button>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">返回</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>



        </div>
    </div>
    <footer th:replace="common/comm :: footer "></footer>
</div>
</body>
<script type="text/javascript" th:src="@{/js_hr/resume/resumeList.js}"></script>
<script th:src="@{/js_hr/post/post.js}"></script>
</html>